//
//  Configuration.h
//  testTableView
//  通用设置
//  Created by LYJ on 2019/9/20.
//  Copyright © 2019 LYJ. All rights reserved.
//

#ifndef Configuration_h
#define Configuration_h


#define SCREEN_WIDTH                MIN([[UIScreen mainScreen] bounds].size.width, [[UIScreen mainScreen] bounds].size.height)
#define SCREEN_HEIGHT               MAX([[UIScreen mainScreen] bounds].size.width, [[UIScreen mainScreen] bounds].size.height)

//***** 屏幕宽高 *****//
#define iphoneX ((int)((SCREEN_HEIGHTL/SCREEN_WIDTHL)*100) == 216)?YES:NO     /// iphoneX

#define WIDTH_PRO(X) ((iphoneX == 1) ? (X) * (SCREEN_WIDTH / 375) : (X) * (SCREEN_WIDTH/375))
#define HEIGHT_PRO(Y) ((iphoneX == 1) ? (Y) * (SCREEN_HEIGHT / 812) : (Y) * (SCREEN_HEIGHT/667))

#define NAVIHEIGHT_PRO ((iphoneX == 1) ? 88 : 64)
#define TABBARHEIGHT_PRO ((iphoneX == 1) ? 83 : 49)
#define TABLEY ((iphoneX == 1) ? 44 : 20)
#define ISIPHONEX  ((iphoneX == 1) ? 24.0 : 0.0)

#define SCREEN_HEIGHTL  [UIScreen mainScreen].bounds.size.height
#define SCREEN_WIDTHL  [UIScreen mainScreen].bounds.size.width
#define SCREEN_SIZE [UIScreen mainScreen].bounds.size

//#define isSimulator 1   //模拟器
#define isSimulator 0   //真机



//***** 边界距离 *****//

//***** 字号 *****//
#define FontWithSize(size) [UIFont fontWithPx:size*2]
//***** 字体 *****//
#define kTextFontName @"PingFangSC-Regular"
#define kTextBoldFontName @"PingFangSC-Semibold"

#endif /* Configuration_h */
